const express = require('express');

const app = express()

// 1.导入解析表单数据的中间件 body-parser
const parser = require('body-parser')

// 2. 注册中间件
app.use(parser.urlencoded({ extended: false }))
app.post('/user', (req, res) => {
    console.log(req.body);
    res.send('ok')
})
app.listen(11, () => {
    console.log('express running is running at http://127.0.0.1:11');
})